package com.homeworkh.usermanagementserver.algorithm;

/**
 * @author lq
 * @date 2021/1/16 14:15
 */
public class Sort {

    public static void swap(int[] arr,int i,int j){
        int temp = arr[i];
        arr[j] = arr[i];
        arr[i] = temp;
    }

    public static void main(String[] args) {
        int[] arr = {1,3,2,5,4,7,6};
        swap(arr,1,2);
    }
}
